package Lab3.Cat;

import java.awt.*;

/**
 * Title      : CatTest.java
 * Description: This class contains the test class for Cat.
 * Copyright  : Copyright (c) 2006 - 2021
 *
 * @author Yibai Jiang
 * @version 1.5
 */
public class CatTest {
    public static void main(String[] args) {
        Cat myCat = new Cat("Napoleon", "short", true, Color.ORANGE, 300);
        myCat.printNameAndSpeed();

        myCat.sleep(5);
        int numMetres = myCat.run(10, true);
        System.out.println("I have run " + numMetres + " metres.");
        System.out.println("-----------------------------");

        Cat cat1 = new Cat("Tom", "short", true, Color.BLACK, 500);
        cat1.printNameAndColor();
        cat1.run(10, false);
        System.out.println("-----------------------------");
        Cat cat2 = new Cat("Moggy", "long", false, Color.WHITE, 400);
        cat2.printNameAndColor();
        cat2.run(5, true);
    }
}
